import { getMovieList } from "../api/movies";
import { createMoviePage } from './list/index.js';
import { createPageCode } from "./pagecode";

function init(){
  getMovieList(1, 30)
  .then((data) => {
    createMoviePage(data.data.movieList);
    createPageCode(1, 30, data.data.movieTotal);
  })
  .catch((err) => {
    // alert(err);
  });
}

init();

